package mc.web.decorators;

import java.util.Locale;
import java.util.ResourceBundle;
import mc.domain.Lekarz;
import org.displaytag.decorator.TableDecorator;

public class SlownikLekarzDekorator extends TableDecorator  {
	
	private Locale loc = new Locale("pl","PL");
	private ResourceBundle res = ResourceBundle.getBundle("messages", loc);
	
	public String getLink1(){
		
	 Lekarz obj = (Lekarz)getCurrentRowObject();
	 int oid= obj.getId();
	 StringBuffer html = new StringBuffer();
	 
	 html.append("<input type=\"button\" value=\"");
	 html.append(res.getString("decorator.wybierz"));
	 html.append("\" onClick=\"wybierz('");
	 html.append(oid).append("','").append("id_lekarza");
	 html.append("')\"/>");
	 
	 return html.toString();
	
	}

}
